<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        function log(){
          console.log.apply(console, arguments);
        };
        log("hee dafds","ddd");

        function log2(){  
          var args = Array.prototype.slice.call(arguments);
          args.unshift('(app)');
          console.log.apply(console,args)
        };
        log2("afsd dasd","asdfsd")
    </script>
</body>
</html>